//
//  SwipableViewController.h
//  Cunli
//
//  Created by lilubin on 15/6/10.
//  Copyright (c) 2015年 lilubin. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "TitleBarView.h"
//#import "HorizonalTableViewController.h"

@class TitleBarView;
@class HorizonalTableViewController;

@interface SwipableViewController : UIViewController

@property (nonatomic, strong) TitleBarView *titleBar; //title视图
@property (nonatomic, strong) HorizonalTableViewController *viewPager; //下面的子视图

- (instancetype)initWithTitle:(NSString *)title andSubTitles:(NSArray *)subTitles andControllers:(NSArray *)controllers underTabbar:(BOOL)underTabbar;

- (instancetype)initWithTitle:(NSString *)title andSubTitles:(NSArray *)subTitles andControllers:(NSArray *)controllers;

- (void)scrollToViewAtIndex:(NSInteger)index; //滚动到指定视图

@end
